
class DBaseCom extends fgui.GComponent{
    private _isShow:boolean = false;
    public get isShow(){ return this._isShow; }
    public set isShow(v:boolean){ this._isShow = v; }
    protected onHide(){}
    protected onShow(){}

    public show(){
        if(this.isShow){
            return;
        }
        this._isShow = true;
        this.onShow();
        return;
    }

    public hide(){
        if(!this._isShow){
            return;
        }
        this._isShow = false;
        this.onHide();
    }

    public updateData(data){
        this.data = data;
        this.onUpdateData();
    }

    protected onUpdateData(){
        
    }
}